package org.example.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class EventRunner implements CommandLineRunner {

    @Autowired
    private Runnable springEventTest;

    @Autowired
    private Runnable javaEventTest;

    @Override
    public void run(String... args) throws Exception {
        springEventTest.run();
        javaEventTest.run();
    }
}
